package com.gxnzd.communityelderly.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.gxnzd.communityelderly.commom.R;
import com.gxnzd.communityelderly.entity.Community;

import java.util.List;

/**
 * ClassName: CommunityService
 * Package: com.gxnzd.communityelderly.service
 * Description:
 *
 * @Author 胡海峰
 * @Create 2024/10/17 20:43
 * @Version 1.0
 */
public interface CommunityService extends IService<Community> {

    R<Page> getList(
            Integer page,
            Integer pageSize,
            String communityName,
            String districtsName,
            String communityAddress,
            Long communityId
           );

    R<List<Community>> queryKeyWords(String communityName);

    R addCommunityInfo(Community community);

    R updateCommunityInfo(Community community);

    R deleteCommunity(Long communityId);

    R<Community> getCommunityInfo(Long communityId);

    R<List<Community>> getAllList();
}
